package cn.edu.scau.cmi.zengGuanSheng.composite.consistent;

import java.io.IOException;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

public class ConsistentClient1 extends Application {
	
	public static Stage primaryStage;
    private AnchorPane rootLayout;
    @Override
    public void start(Stage primaryStage) {
    	ConsistentClient1.primaryStage = primaryStage;
    	ConsistentClient1.primaryStage.setTitle("实验五一致型组合模式");
        initRootLayout();
    }
    
    public void initRootLayout() {
        try {
            FXMLLoader loader = new FXMLLoader();
            loader.setLocation(getClass().getResource("ConsistentScene.fxml"));
            rootLayout = (AnchorPane) loader.load();
            
            Scene scene = new Scene(rootLayout);
            primaryStage.setScene(scene);
            primaryStage.show();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		launch(args);
	}

}